package com.zhentao.controller;

import com.zhentao.common.dtos.ResponseResult;
import com.zhentao.service.UserCouponsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("wx/coupons")
public class UserCouponsController {

    @Autowired
    private UserCouponsService userCouponsService;

    /**
     * 优惠卷
     * @param userId
     * @return
     */

    @GetMapping("/addCoupons")
    public ResponseResult addCoupons(@RequestParam("userId") Integer userId){
        return userCouponsService.addCoupons(userId);
    }
}
